
<div id="trees">
	<div id="tree-dropdown"></div>
</div>
<script type="text/javascript">
$(function(){
	//多选树形列表初始化
	var  setting={
		    expandLevel:"0", 
			checkType:'multi',  // 多选
			displayName:"name", // 树节点显示的字段
			check:"checkd",
			children:"children", // 指定子
			checkboxType : {"Y":"s","N":"s"} // 父子的勾选联动关系设置，参考树的api说明
	     };
	setting.beforeCheck = setting.beforeCollapse = setting.beforeExpand =function(){
		setTimeout(function(){
			$('#tree-dropdown').parents(".ccay-selector").focus();
		},0);
	}
	$('#tree-dropdown').ccayTree("services/manage/registry/list",setting,function(){});
	//定义 确定 按钮事件
	Ccay.UI.Selector.register('#trees',function(){
		return $("#tree-dropdown").getCcayTreeManager().getCheckedNodes();
	})
})
</script>